package cn.com.util;

import cn.com.constant.Code;

import java.util.ArrayList;

public class DataResult {
    private Integer code= Code.SUCCESS;
    private String message="";
    private Object data=new ArrayList<>();
    private Integer total=0;
    private Integer page=0;
    private Integer count=0;

    public DataResult(){

    }

    public DataResult(Integer page,Integer count){
        this.page=page;
        this.count=count;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
